<div id="menuSubcategorias">
  <?php foreach($subcategories as $subcategory){ ?>
    <div class="subcategoria">
      <a href="<?php echo url_for('@homepage?sc='.$subcategory->getId()) ?>"
         id="subcategoria_<?php echo $subcategory->getId() ?>">
        <?php echo $subcategory->getDescription() ?></a>
    </div>
  <?php } ?>
</div>